package com.hzcx.app.simplechat.ui.login.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hzcx.app.simplechat.R;
import com.hzcx.app.simplechat.ui.login.bean.PhoneCityBean;

import java.util.List;

public class PhoneCityAdapter extends BaseQuickAdapter<PhoneCityBean.CityBean, BaseViewHolder> {

    public PhoneCityAdapter(@Nullable List<PhoneCityBean.CityBean> data) {
        super(R.layout.rv_item_phone_city,data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PhoneCityBean.CityBean item) {
        helper.setText(R.id.tv_name,item.getCountry());
        helper.setText(R.id.tv_numer,item.getPrefix());
    }
}
